package com.liao.badminton.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liao.badminton.code.PageParam;
import com.liao.badminton.code.ProjectException;
import com.liao.badminton.code.ResponseRest;
import com.liao.badminton.dto.SystemUsersDto;
import com.liao.badminton.entity.SystemLoginLog;
import com.liao.badminton.entity.SystemUsers;
import com.liao.badminton.vo.SystemUsersVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author liaocheng
 * @date 2023-11-22
 * description:用户信息表
 */
public interface SystemUsersService extends IService<SystemUsers> {
    /**
     * 新增
     */
    ResponseRest saveSystemUsers(SystemUsersDto param) throws ProjectException;

    /**
     * 删除
     */
    ResponseRest deletesSystemUsers(SystemUsersDto param) throws ProjectException;

    /**
     * 修改
     */
    ResponseRest updateSystemUsers(SystemUsers param) throws ProjectException;

    /**
     * 查询详情
     */
    SystemUsersVo findDetail(SystemUsersDto param) throws ProjectException;

    /**
     * 查询列表
     */
    ResponseRest findSystemUsersByPageParam(PageParam<SystemUsersDto> PageParam) throws ProjectException;


    SystemUsersVo findByName(String username);

    SystemUsersVo register(SystemUsersDto systemUsersDto, HttpServletResponse response);


    SystemUsersVo loginByPhone(String phone, String password, HttpServletResponse response);

    void updateLogin(SystemLoginLog systemLoginLog);
}

